<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      //   1   11  121   1331   14641
      function getRow(rowIndex) {
        let arr= []
        if (rowIndex == 0) return  arr = [1]
        if(rowIndex == 1) return  arr = [1,1]
        if(rowIndex == 2) return  arr = [1,2,1]
        dp[i] =arr.pu [1,[dp[0] + dp[rowIndex]],1]
       for(let i =2; i< rowIndex +1 ;i++){

       }
      }
     let res =  getRow(2)
     console.log(res);
    </script>
  </body>
</html>
